Import Custom Functions
In [2]:
import sys
import os
sys.path.append('/mnt/labshare/Programs/python/HelperFunctions/')
from myfunctions import *
In [3]:
jpmsample = "051215A-D6"
qubitsample = "CH009"
datapath = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/'
for p, dirs, files in os.walk(datapath):
print (p)
for file in files:
if file.endswith('.h5'):
print (os.path.join(p, file))
In [3]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160229/7_CH009_051215A-D6_slow.h5"
plotCounts(file, samplename=jpmsample+" Slow Pulse Amplitude");
In [4]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/19_CH009_051215A-D6_fast_amp_fine_2000avg.h5"
plotCounts(file, samplename=jpmsample+" Fast Pulse Amplitude");
In [12]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/34_CH009_051215A-D6_cav.h5"
plotCounts(file, samplename=qubitsample + " at 12dBm RT through " + jpmsample);
In [21]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/35_CH009_051215A-D6_cav_0dBm.h5"
plotCounts(file, samplename=qubitsample + " 0dBm RT through " + jpmsample);
In [4]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/36_CH009_051215A-D6_cav_pwr.h5"
plotCounts(file);
In [11]:
x, brightdata = getH5Data('/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/39_CH009_051215A-D6_Contrast_bright.h5')
x, darkdata = getH5Data('/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/38_CH009_051215A-D6_Contrast_dark.h5')
layout, bright = LinePlot("Bright", x=x, y=brightdata)
layout, dark = LinePlot("Dark", x=x, y=darkdata)
layout, contrast = LinePlot("Contrast", x=x, y=brightdata-darkdata)
iplot(Figure(data=[bright, dark, contrast], layout=layout))
In [14]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/45_CH009_051215A-D6_cav_pwr_fine.h5"
plotCounts(file);
In [42]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/70_CH009_051215A-D6_cavpwr_fine_2000reps.h5"
data = plotCounts(file, samplename="Cavity Power Scan");
In [11]:
In [46]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160301/70_CH009_051215A-D6_cavpwr_fine_2000reps.h5"
data = plotCounts(file, samplename="Cavity Power Scan", show=False);
fig, x, y, z = data
for i, power in enumerate(y):
z[:, i] = z[:, i] - min(z[:, i])
z[:, i] = z[:, i] / max(z[:, i])
# z[i, :] = z[i, :]/ max(z[i, :])
iplot(Figure(data=[Heatmap(x=y, y=x, z=z)]))
In [48]:
file = "/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/89_CH009_051215A-D6_Cav_DC_-5dBm.h5"
fig, x, y, z = plotCounts(file)
for i, power in enumerate(y):
z[:, i] = z[:, i] - min(z[:, i])
z[:, i] = z[:, i] / max(z[:, i])
# z[i, :] = z[i, :]/ max(z[i, :])
iplot(Figure(data=[Heatmap(x=y, y=x, z=z)]))
In [51]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/92_CH009_051215A-D6_Cav_-.8V_-5dBm_10kReps.h5'
plotCounts(file);
In [53]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/96_CH009_051215A-D6_Cav_-10dBm.h5'
plotCounts(file);
In [55]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/109_CH009_051215A-D6_cav_10.h5'
plotCounts(file);
In [60]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160302/118_CH009_051215A-D6_Spectrum_0dBm.h5'
# plotCounts(file);
tls.embed('plourdelab', 268)
Out[60]:
In [88]:
file = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160303/122_CH009_051215A-D6_cav_fastamp_0dBm.h5'
brightdata = plotCounts(file, show=False);
darkfile = '/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160303/123_CH009_051215A-D6_dark_fastamp_0dBm.h5'
darkdata = plotCounts(darkfile, show=False);
dark = darkdata[2]
contrastdata = []
for i, freq in enumerate(brightdata[1]):
contrastdata.append(brightdata[3][i] - dark)
fig = brightdata[0]
fig['data'][0]['z'] = contrastdata
fig['layout']['title'] = "Contrast at 0dBm"
fig['layout']['xaxis']['title'] = "Fast Pulse Amplitude (Arb. Units)"
fig['layout']['yaxis']['title'] = "Frequency (GHz)"
iplot(brightdata[0])
In [90]:
file='/mnt/labshare/Experiments/JPM/CH009_051215A-D6/160303/127_CH009_051215A-D6_cav_dc_0dBm_zoomed_in.h5'
fig, x, y, z = plotCounts(file)
for i, power in enumerate(y):
z[:, i] = z[:, i] - min(z[:, i])
z[:, i] = z[:, i] / max(z[:, i])
# z[i, :] = z[i, :]/ max(z[i, :])
iplot(Figure(data=[Heatmap(x=y, y=x, z=z)]))
In [ ]: